'use client'; import Link from 'next/link'; import { useSelectedLayoutSegment } from 'next/navigation'; type Props = { identifier: string; }; export default function ChannelTabs({ identifier }: Props) { const segment = useSelectedLayoutSegment(); const encoded = encodeURIComponent(identifier); const tabs = [ { key: null, label: '소개', href: `/channel/${encoded}` }, { key: 'posts', label: '게시물', href: `/channel/${encoded}/posts` } ]; return ( ); }